<?php
/* @var $this ParserController */
/* @var $model PublicInfoForm */
/* @var $form CActiveForm */

$this->breadcrumbs = array(
  'Parser' => array('/parser'),
  'PublicInfo',
);
?>
<h1>Parser - Public Info</h1>

<?php if (Yii::app()->user->hasFlash('publicInfo')): ?>

  <div class="flash-success">
    <?php echo Yii::app()->user->getFlash('publicInfo'); ?>
  </div>

<?php endif; ?>

<div class="form">
  <?php
  $form = $this->beginWidget('CActiveForm', array(
    'id' => 'publicInfo-form',
    'enableClientValidation' => true,
    'clientOptions' => array(
      'validateOnSubmit' => true,
    ),
      ));
  ?>

  <p class="note">"Spielerinfo" Seite mit Tastenkombination "STRG-A" kopieren und einfügen.</p>

  <div class="row">
    <?php echo CHtml::activeLabel($model, 'rawText'); ?>
    <?php
    echo CHtml::activeTextArea($model, 'rawText', array(
      'rows' => 25, 'cols' => 120
    ))
    ?>
    <?php echo $form->error($model, 'rawText'); ?>
  </div>

  <div class="row buttons">
    <?php echo CHtml::submitButton('Submit'); ?>
  </div>

  <?php $this->endWidget(); ?>
</div>
<?php
/*if (count($info) > 0) {
  echo var_dump($info);
}*/
?>
